//
//  MWFilterMenuHeaderView.m
//  XiRan-iOS
//
//  Created by liuyiming on 2019/11/1.
//  Copyright © 2019 Wood. All rights reserved.
//

#import "MWFilterMenuHeaderView.h"

@interface MWFilterMenuHeaderView ()

@property(nonatomic, strong) UILabel *titleLB;

@end

@implementation MWFilterMenuHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupPageSubviews];
    }
    return self;
}

- (void)setTitle:(NSString *)title {
    _titleLB.text = title;
}

- (void)setupPageSubviews {
    _titleLB = [[UILabel alloc] init];
    _titleLB.font = MWFont(15);
    _titleLB.textColor = MWHexColor(@"#333333");
    _titleLB.text = @"功能";
    [self addSubview:_titleLB];
    
    [_titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(20);
        make.centerY.equalTo(self);
    }];
}

@end
